function BrickController(view) {
	this.view = view;
}

BrickController.prototype.startup = function() {
	this.view.init(this);
};

BrickController.prototype.onSolutionGuess = function(val) {
	var guessed = parseInt(val);
	var solution = parseInt(String.fromCharCode(50));

	if (guessed === solution) {
		new AEnigmatesStorage("brick").solved();
		this.view.onSolved();
	} else {
		this.view.onFail();
	}
};